package com.itheima.InnerClassDemo1;

public class InnerClassDemo1 {
    public static void main(String[] args) {
        Outer.Inner oi=new Outer().new Inner();
        oi.method();
        System.out.println(Outer.name1);
        People.Heart heat=new People().new Heart();
        heat.show();
    }
}

class People{
    private int heartBeat=100;
    public class Heart{
        private int heartBeat=80;
        public void show(){
            System.out.println("心脏跳动:"+heartBeat);
            System.out.println("心脏跳动:"+this.heartBeat);
            System.out.println("心脏跳动:"+People.this.heartBeat);
        }
    }
}
